package com.woniuxy.food.service;

import com.woniuxy.food.infra.model.FoodSpu;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.food.service.servicedto.FoodSpuServiceDto;
import com.woniuxy.food.service.serviceparam.*;
import common.WoniuPage;

import java.util.List;

/**
 * <p>
 * 菜品spu表 服务类
 * </p>
 *
 * @author 刘德华
 * @since 2023-07-19
 */
public interface FoodSpuService extends IService<FoodSpu> {

    void insertFoodSpu(InsertFoodSpuServiceParam insertFoodSpuServiceParam);

    void updateFoodSpuStateByIds(UpdateFoodSpuStateServiceParam updateFoodSpuStateServiceParam);

    void updateFoodSpuById(UpdateFoodSpuServiceParam updateFoodSpuServiceParam);

    void updateFoodSpuSalesCountById(UpdateFoodSpuSalesCountServiceParam updateFoodSpuSalesCountServiceParam);

    void deleteFoodSpuByIds(Integer storeId, Integer[] ids);

    WoniuPage<FoodSpuServiceDto> searchFoodSpuByCondition(SearchFoodSpuByConditionServiceParam searchFoodSpuByConditionServiceParam);

    FoodSpuServiceDto searchFoodSpuBySkuId(Integer skuId);


    List<FoodSpuServiceDto> getSpuByStoreId(Integer storeId);
}
